﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.SysModel
{
    public class DictParamModel
    {
        public int item_id { get; set; }
        [Required(ErrorMessage = "名称：必填项")]
        public string item_name { get; set; }
        [Required(ErrorMessage = "代码：必填项")]
        public string item_code { get; set; }
        public string enLang { get; set; }
        public string code_type { get; set; }
        public string item_note { get; set; }
        public int code_pid { get; set; }
        public string whereValue { get; set; }
        public string numValue { get; set; }
        public int if_child { get; set; } = 1;
    }
    public class DictChildParamModel
    {
        public int itemId { get; set; }
        [Required(ErrorMessage = "名称：必填项")]
        public string itemName { get; set; }
        [Required(ErrorMessage = "代码：必填项")]
        public string itemCode { get; set; }
        public string enLang2 { get; set; }
        public string codeType { get; set; }
        public string itemNote { get; set; }
        public int codePid { get; set; }
        public int if_child { get; set; } = 1;
        public int codeOrder { get; set; }
        public string numValue2 { get; set; }
    }
}
